package com.jiangsong.batch;

import com.jiangsong.entity.Product;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ProductRowMapper implements RowMapper<Product> {
    @Override
    public Product mapRow(ResultSet rs, int rowNum) throws SQLException {
        Product user = new Product();
        user.setAccNo(rs.getString("acc_no"));
        return user;
    }
}